//package com.zcyh.exam.controller.student;
//
//import com.zcyh.exam.controller.BaseController;
//import com.zcyh.exam.model.common.PageInfo;
//import com.zcyh.exam.model.common.Result;
//import com.zcyh.exam.model.dto.QuestionInfoAnswer;
//import com.zcyh.exam.model.request.PageParam;
//import com.zcyh.exam.model.request.WrongBookQuery;
//import com.zcyh.exam.service.education.StudentWrongBookService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
///**
// * 错题本管理接口
// * @author zengjintao
// * @version 1.0
// * @create_at 2020/12/4 17:56
// */
//@RestController
//@RequestMapping("/student/wrongBook")
//public class WrongBookController extends BaseController {
//
//    @Autowired
//    private StudentWrongBookService studentWrongBookService;
//
//    /**
//     * 错题本列表
//     * @param pageParam
//     * @param wrongBookQuery
//     * @return
//     */
//    @GetMapping
//    public Result<PageInfo<QuestionInfoAnswer>> list(PageParam pageParam, WrongBookQuery wrongBookQuery) {
//        wrongBookQuery.setStudentId(studentWrongBookService.getUserId());
//        return Result.success(studentWrongBookService.selectPageList(pageParam, wrongBookQuery));
//    }
//}
